package com.maomao.es.vector;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author mao
 * @date 2025-05-30- 14:50
 * @descript
 */
@Data
@Document(indexName = "vector_docs")
public class VectorDocument {

    @Id
    private String id;

    private String title;

    private String content;

    @Field(type = FieldType.Dense_Vector, dims = 512)
    private float[] titleVector;

    @Field(type = FieldType.Dense_Vector, dims = 512)
    private float[] contentVector;

}
